package com.nowcoder.code.lcof;

public class JZ17 {


    public static void main(String[] args) {

    }

    public int[] printNumbers(int n) {

        int max = 9;
        for (int i = 1; i < n; i++) {
            max = max * 10 + 9;
        }
        int[] res = new int[max];

        for (int i = 1; i <= max; i++) {
            res[i-1] = i;
        }
        return res;

    }

}
